import { ResUtil } from "../../ResUtil/ResUtil";

const { ccclass, property, menu } = cc._decorator;

@ccclass
@menu('Scene/TestCase/TestCase')
export default class TestCase extends cc.Component {

    @property({ type: cc.ScrollView, tooltip: '滚动层' })
    landScroll: cc.ScrollView = null;

    start() {
        // let shaderList = [{ 'type': 'title', 'title': 'Shader', 'subList': '溶解,圆角矩形-v1,圆角矩形-v2' }];
        ResUtil.getPrefab('BoomWithCamera/BoomWithCamera', (err: Error, res: cc.Prefab) => {
            if (err) { cc.error(err); return; }

            let node = cc.instantiate(res);
            node.parent = this.node;
        });
    }
}
